<div th:with="dataname=${strings.uuid()}">
	<data name="最近评论" th:moduleType="${moduleType}" th:dataName="${'comments'+dataname}" queryAdmin="true"/>
	<div th:with="comments=${#request.getAttribute('comments'+dataname)}">
		<div th:unless="${#lists.isEmpty(comments)}">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title" th:text="${title == null ? '最近评论' : title}"></h3>
				</div>
				<div class="panel-body">
					<iterator th:remove="tag" th:each="comment : ${comments}">
						<div th:id="'comment'+${comment.id}" class="media"
							th:data-p="${comment.parent == null ? '' : comment.parent.id}">
							<a class="pull-left" th:href="${urls.url+'/comment/link/'+comment.commentModule.module+'/'+comment.commentModule.id}">
								<img class="media-object"
								th:src="${comment.gravatar == null ? urls.url+'/static/img/guest.png' : gravatarPrefix+comment.gravatar}"
								data-holder-rendered="true" style="width: 64px; height: 64px;">
							</a>
							<div class="media-body">
								<h5 class="media-heading">
									<strong><span class="glyphicon glyphicon-user"
										style="color: red" title="管理员" th:if="${comment.admin}"></span><span
										th:text="${comment.nickname}"></span></strong>&nbsp;&nbsp;&nbsp;<span
										th:if="${comment.parent != null}" th:remove="tag"> <span
										class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>&nbsp;&nbsp;
										<span class="glyphicon glyphicon-user" style="color: red"
										title="管理员" th:if="${comment.parent.admin}"></span><span
										th:text="${comment.parent.nickname}"></span>
									</span>
								</h5>
								<p style="word-break: break-all" th:utext="${comment.content}"></p>
							</div>
						</div>
					</iterator>
				</div>
			</div>
		</div>
	</div>
</div>


